package com.appservice.controller;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.vidyu.datalayer.dataaccesscomponents.MonitorDbHandler;



/**
 * Created by IntelliJ IDEA.
 * Session: eyalsa
 * Date: 06/03/12
 * Time: 16:11
 * Link Users To Agency
 */
@Controller
public class AddSessionParamsController {

    @Autowired
    private MonitorDbHandler monitorDbHandler;

    private static final Logger logger = Logger.getLogger(AddSessionParamsController.class);

    @RequestMapping(value = "/services/dsp/addSessionParams/{paramsStr}")
    public
    @ResponseBody
    boolean addSessionParams(@PathVariable String paramsStr) {
        try {

            monitorDbHandler.findById(3);
            return true;
        } catch (Exception e) {
            logger.fatal(e);
            return false;
        }
    }
}

